package com.easyCms.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "bs_static_data")
public class BsStaticData extends BaseEntity {

	@Expose
	private String code;

	@Expose
	private String name;

	@Expose
	private String value;

	@Expose
	private String description;

	@Expose
	private Integer sort;

	@Expose
	@Column(insertable = false, updatable = false)
	private Long typeId;

	@ManyToOne(cascade = { javax.persistence.CascadeType.REFRESH })
	@JoinColumn(name = "typeId")
	private BsStaticType staticType;

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSort() {
		return this.sort;
	}

	public void setSort(int sort) {
		this.sort = Integer.valueOf(sort);
	}

	public Long getTypeId() {
		return this.typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public BsStaticType getStaticType() {
		return this.staticType;
	}

	public void setStaticType(BsStaticType staticType) {
		this.staticType = staticType;
	}
}